package com.learning.hadoop.sqoop.thread;

import java.util.List;

/**
 * ClassName: Cal
 * Description:
 * Date: 2018/4/18 11:26 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
public class Cal {

    /**
     * @param poll
     */
    public static Object cal(Object poll) throws InterruptedException {
        System.out.println(Thread.currentThread().getName() + " # 计算方法");
        Thread.sleep(200L);
        return null;
    }

    /**
     * mybatis 的 batch
     *
     * @param poll
     */
    public static void save(List<Object> poll) {
//        boolean flag = dao.save();
        System.out.println(Thread.currentThread().getName() + " * 数据库持久化方法");
    }
}
